package cn.spamc.mapper;

import cn.spamc.pojo.SelectInformation;
import cn.spamc.pojo.StudentInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SelectInformationMapper {
    int deleteByPrimaryKey(String studentId);

    int insert(StudentInformation record);

    int insertSelective(StudentInformation record);

    StudentInformation selectByPrimaryKey(String studentId);

    int updateByPrimaryKeySelective(StudentInformation record);

    int updateByPrimaryKey(StudentInformation record);

    /**
     * 通过不限定条件的选择来查找学生信息
     * @param selectInfo 前端返回的选择信息，若类内属性不为空，则代表被选择
     * @return
     */
    List<StudentInformation> getStudentListByCondition(@Param("selectInfo") SelectInformation selectInfo);
}